<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="{$smarty.const.ADMIN_CSS_PATH}style.css" rel="stylesheet" type="text/css" />
<!--<link href="{$smarty.const.CSS_PATH}bootstrap.min.css" rel="stylesheet" type="text/css" />-->
<link href="css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{$smarty.const.ADMIN_JS_PATH}jquery.js"></script>
<script type="text/javascript" src="js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="js/select-ui.min.js"></script>
<script type="text/javascript" src="editor/kindeditor.js"></script>

<script type="text/javascript">
    KE.show({
        id : 'content7',
        cssPath : './index.css'
    });
  </script>
  
<script type="text/javascript">
$(document).ready(function() {
	$(".select3").uedSelect({
		width : 100
	});
});
function setf(s){
	var thisurl="{$smarty.const.__CONTROLLER__}/changestatus";
	$.post(thisurl,"id="+s.dataset.href,function(msg){
	//alert(msg);
	s.innerHTML=msg;
	//$(this).append("<i>"+msg+"</i>");
});
}

function del(){ 
if(!confirm("确认要删除？")){ 
window.event.returnValue = false; 
} 
}
</script>
</head>

<body>

	
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
  	<div id="tab2" class="tabson">
    <div class="tools">
    	<ul class="toolbar">
        <li class="click"><a href="{$smarty.const.__CONTROLLER__}/addindexslides"><span><img src="{$smarty.const.ADMIN_IMAGES_PATH}t01.png" /></span>添加</a></li>
        <!--<li class="click"><span><img src="{$smarty.const.ADMIN_IMAGES_PATH}t02.png" /></span>修改</li>
        <li><span><img src="{$smarty.const.ADMIN_IMAGES_PATH}t03.png" /></span>删除</li>
        <li><span><img src="{$smarty.const.ADMIN_IMAGES_PATH}t04.png" /></span>统计</li>-->
        </ul>
    </div>
    
    <table class="imgtable">
    
    <thead>
    <tr>
    <th width="640px;">图片</th>
    <th>标题</th>
    <th>状态</th>
    <th>排序</th>
    <th style="text-align: center;">操作</th>
    </tr>
    </thead>
    
    <tbody style="text-align: center;">
    {foreach $slides as $k=>$v}
    <tr>
    <td class="imgtd" ><img src="{$v.image}" style="width: 640px;height: 128px;"/></td>
    <td>{$v.title}</td>
    <td>{$v.status}</td>
    <td>{$v.sort}</td>
    <td>
    <a href="{$smarty.const.__CONTROLLER__}/editindexslides/uid/{$v.uid}" target="rightFrame">编辑</a>&nbsp;&nbsp;&nbsp;
    <a href="{$smarty.const.__CONTROLLER__}/deleteindexslides/uid/{$v.uid}"  onclick="return del()"> 删除</a>
    </td>
    </tr>
    {/foreach}
    </tbody>
    </table>
    
    <!--<div class="pagin">
    	<div class="message">共<i class="blue">{$total}</i>条记录，每页显示&nbsp;<i class="blue">10&nbsp;</i>条</div>
        <ul class="paginList">
        	{$pagelist}
        </ul>
    </div>-->
    </div>  
       
	</div> 
	<script type="text/javascript"> 
      $("#usual1 ul").idTabs(); 
    </script>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
    </div>

</body>
</html>
